<script setup lang="ts">
import miscMaskLight from '@base/images/misc/misc-mask-light.png'
import pages401 from '@base/images/pages/401.png'

import miscMaskDark from '@base/images/misc/misc-mask-dark.png'
import miscObj from '@base/images/pages/misc-401-object.png'
import { useGenerateImageVariant } from '@base/@core/composable/useGenerateImageVariant'

const miscThemeMask = useGenerateImageVariant(miscMaskLight, miscMaskDark)
</script>

<template>
  <div class="misc-wrapper">
    <ErrorHeader
      status-code="401"
      :title="$t('You are not authorized! 🔐')"
      :description="$t(`You don\'t have permission to access this page\. Go Home!`)"
      class="mb-10"
    />

    <!-- 👉 Image -->
    <div class="misc-avatar w-100 text-center">
      <VImg
        :src="pages401"
        alt="Unauthorized"
        :height="$vuetify.display.xs ? 400 : 500"
        class="my-sm-5"
      />

      <VBtn
        to="/"
        class="mt-10"
      >
        {{ $t('Back to Home') }}
      </VBtn>

      <VImg
        :src="miscThemeMask"
        class="d-none d-md-block footer-coming-soon flip-in-rtl"
        cover
      />

      <VImg
        :src="miscObj"
        class="d-none d-md-block footer-coming-soon-obj"
        :max-width="212"
        height="165"
      />
    </div>
  </div>
</template>

<style lang="scss">
@use "@base/@core/scss/template/pages/misc.scss";
</style>
